package com.example.testproj.map;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.example.testproj.R;

import java.util.HashMap;
import java.util.Map;

public class MapTestActivity extends AppCompatActivity {
    private static final String TAG = "MapTestActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_map_test);

        HashMap map=new HashMap();
//        map.put("test","我是测试");

        for (int i = 0; i<8; Log.d(TAG, "onCreate: 23333"+i) ,i++){
            map.put(""+i,i);
        }

//        map.put("test2",2);
//        map.put("test3",3);
//        map.put("test4",4);


        Log.d(TAG, "onCreate: "+map.get("test"));
        Log.d(TAG, "onCreate: "+map.get("test2"));


//        int[] test1=new int[4];
//        Log.d(TAG, "onCreate: test1.length=="+test1.length);
//        Log.d(TAG, "onCreate: -4>>1==="+(-4>>1));
//        Log.d(TAG, "onCreate: -4>>>1==="+(-4>>>1));
    }
}
